Skip to content

Instantly share code, notes, and snippets.

@dabit3
dabit3 / pi_tutorial.md
Last active September 28, 2026 23:06
How to Build a Custom Agent Framework with PI: The Agent Stack Powering OpenClaw

PI is a TypeScript toolkit for building AI agents. It's a monorepo of packages that layer on top of each other: pi-ai handles LLM communication across providers, pi-agent-core adds the agent loop with tool calling, pi-coding-agent gives you a full coding agent with built-in tools, session persistence, and extensibility, and pi-tui provides a terminal UI for building CLI interfaces.

These are the same packages that power OpenClaw. This guide walks through each layer, progressively building up to a fully featured coding assistant with a terminal UI, session persistence, and custom tools.

By understanding how to compose these layers, you can build production-grade agentic software on your own terms, without being locked into a specific abstraction.

Pi was created by @badlogicgames. This is a great writeup from him that explains some of the design decisions made when creating it.

The stack

@ChristianAlexander
ChristianAlexander / update-deps.md
Created January 29, 2026 14:58
Update Elixir Dependencies Skill

Update Elixir Dependencies

Update all outdated dependencies in this Elixir project, handling both safe updates and breaking changes.

Workflow

1. Identify Outdated Dependencies

Run mix hex.outdated to get a list of all outdated dependencies. Parse the output to identify:

  • Safe updates: Dependencies where only the patch or minor version has changed (no major version bump)
@chasehoward11
chasehoward11 / claude-code-job-search-build.md
Last active September 28, 2026 22:58
Job application automation build with Claude Code

The Job Search Automation Build (Claude Code)

The build from my TikTok: paste a job posting URL, get back a Gmail draft with a tailored resume PDF attached, addressed to real people at the company. You review it and hit send. About 90 seconds per application instead of 45 minutes.

This guide shows you how to build your own copy with Claude Code. No code from my version is needed: you describe the system, Claude Code writes it for you.

What it does (the flow)

job posting URL
#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Golden Gate (27)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot. From Terminal : sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@ifekri
ifekri / NetScanPacket.py
Created September 28, 2026 22:45
Network Packet Capture
from __future__ import annotations
import asyncio
import ipaddress
import os
import platform
import re
import shutil
import socket
import subprocess
@GLOUGLOUZzz
GLOUGLOUZzz / instagram-dms-only.user.js
Created September 28, 2026 14:45
Instagram DMs Only (Tampermonkey Script)
// ==UserScript==
// @name Instagram DMs only
// @match https://www.instagram.com/*
// @run-at document-start
// @noframes
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
(function () {
@1951FDG
1951FDG / new_gist_file.sh
Created October 16, 2013 11:31
Use mdfind to find applications that meet certain criteria
mdfind -onlyin /Applications -onlyin /Developer/Applications "kMDItemContentType == 'com.apple.application-bundle' && kMDItemCFBundleIdentifier == 'com.apple.*'" | while read filename; do basename "$filename"; done
mdfind "kMDItemAppStoreHasReceipt=1"
@maxcharlier
maxcharlier / xbox_controller_mapper_mac.py
Last active September 28, 2026 22:39
Map Xbox controler to key on MacOS
# pip install pygame pynput
import pygame
from pynput.keyboard import Controller, Key
import time
# Initialize
pygame.init()
pygame.joystick.init()
# Wait for joystick to initialize
@xiaomi7732
xiaomi7732 / HashStringToGuid.md
Created August 3, 2023 00:05
Hash a string to a guid

Hash a string to a guid

Sometimes, you may encounter a situation where you require a GUID-formatted key but only have a loose string at hand. In such cases, this simple solution can prove to be quite effective.

Goal

This is the API I want:

Guid CreateGuid(string value);